package com.ruoyi.apartmentmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.apartmentmanagement.mapper.ApartmentmanagementMapper;
import com.ruoyi.apartmentmanagement.domain.Apartmentmanagement;
import com.ruoyi.apartmentmanagement.service.IApartmentmanagementService;

/**
 * 公寓管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-09
 */
@Service
public class ApartmentmanagementServiceImpl implements IApartmentmanagementService 
{
    @Autowired
    private ApartmentmanagementMapper apartmentmanagementMapper;

    /**
     * 查询公寓管理
     * 
     * @param id 公寓管理主键
     * @return 公寓管理
     */
    @Override
    public Apartmentmanagement selectApartmentmanagementById(Long id)
    {
        return apartmentmanagementMapper.selectApartmentmanagementById(id);
    }

    /**
     * 查询公寓管理列表
     * 
     * @param apartmentmanagement 公寓管理
     * @return 公寓管理
     */
    @Override
    public List<Apartmentmanagement> selectApartmentmanagementList(Apartmentmanagement apartmentmanagement)
    {
        return apartmentmanagementMapper.selectApartmentmanagementList(apartmentmanagement);
    }

    /**
     * 新增公寓管理
     * 
     * @param apartmentmanagement 公寓管理
     * @return 结果
     */
    @Override
    public int insertApartmentmanagement(Apartmentmanagement apartmentmanagement)
    {
        return apartmentmanagementMapper.insertApartmentmanagement(apartmentmanagement);
    }

    /**
     * 修改公寓管理
     * 
     * @param apartmentmanagement 公寓管理
     * @return 结果
     */
    @Override
    public int updateApartmentmanagement(Apartmentmanagement apartmentmanagement)
    {
        return apartmentmanagementMapper.updateApartmentmanagement(apartmentmanagement);
    }

    /**
     * 批量删除公寓管理
     * 
     * @param ids 需要删除的公寓管理主键
     * @return 结果
     */
    @Override
    public int deleteApartmentmanagementByIds(Long[] ids)
    {
        return apartmentmanagementMapper.deleteApartmentmanagementByIds(ids);
    }

    /**
     * 删除公寓管理信息
     * 
     * @param id 公寓管理主键
     * @return 结果
     */
    @Override
    public int deleteApartmentmanagementById(Long id)
    {
        return apartmentmanagementMapper.deleteApartmentmanagementById(id);
    }
}
